﻿@model IList<FieldInfo>

<div class="layui-row layui-col-space15">
	<div class="layui-col-md12">
		<div class="layui-card">
			<div class="layui-card-header layui-elem-quote">模型预览</div>
			<div class="layui-card-body" pad15>
				<form class="layui-form" wid100 method="post">
					@{
						if (Model != null)
						{
							foreach (var item in Model)
							{
								@await Component.InvokeAsync("FieldControl", new FieldControlViewModel { Prefix = "ModelPre", ModelID = ViewBag.ModelID, IsAdminManage = true, DataSource = new System.Data.DataTable(), FieldName = item.FieldName, FieldValue = item.DefaultValue, FieldType = item.FieldType, FieldLevel = item.FieldLevel, FieldAlias = item.FieldAlias, Tips = item.Tips, Description = item.Description, Disabled = item.Disabled, EnableNull = item.EnableNull, Settings = item.Settings })
							}
						}
					}
				</form>
			</div>
		</div>
	</div>
</div>

